<template>
  <div class="common-layout">
    <el-container>
        <Aside />
      <el-container>
        <el-header>
          <Header/>
        </el-header>
        <el-main class="main-container">
          <RouterView/>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>
<script setup>
import {RouterView} from 'vue-router';
import Aside from '../components/Aside.vue';
import Header from '../components/NavHeader.vue';
import {useStore} from "vuex";
import {computed,onMounted} from "vue";
import { useRouter } from 'vue-router'
const router = useRouter()
const store = useStore()
const isCollapse = computed(() => store.state.menu.isCollapse)
</script>
<style lang="less" scoped>
.common-layout {
  height: 100%;

  .el-container {
    height: 100%
  }
}

.main-container {
  background-color: rgb(255, 255, 255);
}

.aside-container {
  width: 75px;
}
</style>
